﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HrEFCore.Models
{
	//用户表
	public class User
    {
        [Key]
		[DisplayName("编号")]
		[Required(ErrorMessage = "编号不能为空")]
		public short UId { get; set; }//主键编号
		[DisplayName("用户名")]
		[Required(ErrorMessage = "用户名不能为空")]
		public string UName { get; set; }//用户名
		[DisplayName("真实姓名")]
		[Required(ErrorMessage = "真实姓名不能为空")]
		public string UTrueName { get; set; }//真实姓名
		[DisplayName("密码")]
		[Required(ErrorMessage = "密码不能为空")]
		public string UPassWord { get; set; }//密码
	}
}
